wayland: Avoid spurious crossing events from master touch device
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 12 May 2016 11:34:42 +0000 (13:34 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 18 May 2016 10:50:08 +0000 (12:50 +0200)
commit783c30219891e873c9ea07fb83b603b647ef3d47
treeebebde8aba45edbb6da88de12ca808ff36474efb
parent2893526a48b6edae452d966cf9779f4ef0a23a15
wayland: Avoid spurious crossing events from master touch device

Only generate crossing events on wl_touch.down for the virtual master
device used for touch events, and only whenever this virtual device
actually moves across surfaces. This behavior resembles better what is
expected in X11, where the pointer is warped to the touch position
on XITouchBegin.

This avoids the double emission of leave events when the pointer
emulating touch is lifted, that crossing event will be instead
generated when/if the focus surface changes.

https://bugzilla.gnome.org/show_bug.cgi?id=766314
gdk/wayland/gdkdevice-wayland.c